jQuery日本語リファレンス

jQuery does not mean Japanese Query...

Selectors/API/jQuery - Sample Code

[attribute!=value]


            
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="/jquery/js/jquery.js"></script>
  
  <script>
  $(document).ready(function(){
    $("input[name!='newsletter']").next().css("background-color", "yellow");
  });
  </script>
  
</head>
<body>
  <div>
    <input type="radio" name="newsletter" value="Hot Fuzz" />
    <span>Hot Fuzz</span>

  </div>
  <div>
    <input type="radio" name="newsletter" value="Cold Fusion" />
    <span>Cold Fusion</span>
  </div>
  <div>
    <input type="radio" name="accept" value="Evil Plans" />
    <span>Evil Plans</span>

  </div>
</body>
</html>
            
          
[実行結果]
[[attribute!=value] の説明へ]